package com.example.smsdemo.controller;

import com.example.smsdemo.util.R;
import com.example.smsdemo.util.RedisUtils;
import com.example.smsdemo.util.SendMessageUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by ruoan on 2020/9/11 2:29
 */
@RestController
public class IndexController {

    @Autowired
    private RedisUtils redisUtils;
    @Autowired
    private SendMessageUtil sendMessageUtil;
    @GetMapping("/index")
    public R index(){
        //redisUtils.set("a", "hello");
        sendMessageUtil.doSomething();


        return R.ok("可以");

    }
}
